Fix a cornercase crash
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 May 2015 03:42:14 +0000 (23:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 May 2015 03:42:14 +0000 (23:42 -0400)
commit02e2f7dc56736ee03946ce764a76a7bca319db90
tree42565b1e9a416681c5b8bf3230de5a9ad07dcb08
parent03312371daafe3a94d888474eb53d7361d5ed432
Fix a cornercase crash

If gtk_text_layout_move_cursor_visually is called with a
count of 0, we were passing NULL to a free function that
can't handle it. Don't do that.

https://bugzilla.gnome.org/show_bug.cgi?id=750058
gtk/gtktextlayout.c